<script src="{$site_public}tpl/zanpianadmin/libs/ckeditor/ckeditor.js"></script>
<div class="modal fade zanpian-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display:none;">
  <div class="modal-dialog clearfix">
    <div class="modal-content clearfix">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h5 class="modal-title">{notempty name="info.role_id"}编辑角色{$info.role_name}{else /}添加角色{/notempty} </h5>
    </div>
   <div class="modal-body text-center">
   <form class="form-horizontal" id="modal-form" action="{:zanpian_user_url('user/center/addrole')}" role="form" onsubmit="return false;">
   <input type="hidden" id="role_id" name="role_id" value="{$info['role_id']|default=''}"> 
            <div class="form-group">
              <div class="col-md-6 col-sm-6 col-xs-12 mb-15" style="margin-bottom:15px;">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default">视频名：</span>
                </div>
                <input class="form-control" name="vod_name" id="vod_name" type="text" placeholder="视频名" value="{$info.vod_name|default=''}" readonly>
</div>
              </div>
              <div class="col-md-6 col-sm-6 col-xs-12" style="margin-bottom:15px;">
               <div class="input-group ">
                <div class="input-group-btn">
                <span class="btn btn-default">视频ID：</span>
                </div>
                <input class="form-control" name="role_vid" id="role_vid" type="text" placeholder="视频ID" value="{$info.vod_id|default=''}" readonly>
</div>
              </div>
              
               <div class="col-md-6 col-sm-6 col-xs-12 mb-15" style="margin-bottom:15px;">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default">角色名：</span>
                </div>
                <input class="form-control txt" name="role_name" id="role_name" type="text" placeholder="角色名" value="{$info.role_name|default=''}">
</div>
              </div>
              <div class="col-md-6 col-sm-6 col-xs-12 mb-15" style="margin-bottom:15px;">
               <div class="input-group ">
                <div class="input-group-btn">
                <span class="btn btn-default">演员名：</span>
                </div>
                <input class="form-control txt" name="role_star" id="role_star" type="text" placeholder="演员名" value="{$info.role_star|default=''}">
</div>
              </div>
               <div class="col-md-12 col-sm-12 col-xs-12">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">图片地址：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
               <input class="form-control" size="50" id="role_pic" name="role_pic" type="text" value="{$info['role_pic']|default=''}">
              </div>   
              </div>             
            </div>
            <div class="form-group">
             <div class="col-md-12">
               <textarea class="form-control txt" name="role_content"   placeholder="角色介绍" style=" width:100%; height:200px">{$info['role_content']}</textarea>
              </div> 
              </div>             
            <div class="form-group">
              <div class="col-md-4 col-sm-4 col-xs-6">
                <input class="form-control txt" data="validate" name="validate" type="text" placeholder="验证码">
              </div>
              <div class="col-md-3 col-sm-4 col-xs-2"><span id="validate-zanpian"><label><img class="validate-img" src="{:url('home/verify/index',array('t'=>time()))}"></label></span></div>
            </div> 
        <button type="submit" class="btn btn-success" id="add-modal-submit">提交</button>
      </form>
    </div>
</div>
<script type="text/javascript"> 
CKEDITOR.replace('editor',{
toolbar: [
	    { name: 'basicstyles', items: [ 'Bold', 'Italic', 'Strike', '-', 'RemoveFormat' ] },
		{ name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
		{ name: 'links', items: [ 'Link', 'Unlink'] },
		{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList'] },
		{ name: 'document', items: [ 'Source' ] },
		{ name: 'tools', items: [ 'Maximize' ] },
	]
	});
</script>